package pub.xspace.nova.common.exception;

/**
 * 项目统一异常类
 * 
 * @author HeJianrong
 */
public class NovaException extends RuntimeException {

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 1170688667865700932L;
	private int code; // 异常代码
	private String msg; // 异常消息

	public NovaException(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
